package com.wu01.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewController {

    @GetMapping("/hello")
    public String hello(Model model){
        model.addAttribute("msg","adfdfdf");
        model.addAttribute("link","www.baidu.com");
        return "hello";
    }
}
